package com.nielsenedu.exam202604Midterm;

public class ElectricVehicle {
	
	private String model;
	private int range;
	
	public ElectricVehicle(String model, int range) {
		this.model = model;
		this.range = range;
	}

	/**
	 * Returns the range of the vehicle, which is the distance,
	 * in miles, that the vehicle can travel on a fully charged
	 * battery
	 */
	public int getRange() {
		return range;
	}
	
	/**
	 * Returns the model name of the vehicle
	 */
	public String getModelName() {
		return model;
	}
	
	public String toString() {
		return model + " " + range;
	}
}